package com.qf.day01;

import java.util.Scanner;

public class Homework {
    public static void main(String[] args) {
        //三角形面积
        Scanner scanner = new Scanner(System.in);
        while(true){System.out.println("请输入三角形的高:");
            double height=scanner.nextDouble();
            System.out.println("请输入三角形的底:");
            double width=scanner.nextDouble();
            double area=(width*height)/2;
            System.out.println("三角形的面积为:"+area);
        }

    }
}
